﻿namespace TemplateMethod
{
    internal class CharDisplay : AbstractDisplay
    {
        private readonly char text;
        public CharDisplay(char c) 
        {
            this.text = c;
        }

        public override void Close()
        {
            Console.WriteLine(">>");
        }

        public override void Open()
        {
            Console.Write("<<");
        }

        public override void Print()
        {
            Console.Write(text);
        }
    }
}
